package com.cm.caseManagement.pojo.entity;
import com.cm.caseManagement.annotation.Excel;
import com.cm.caseManagement.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 案件预警对象 cm_case_warning
 *
 * @author ruoyi
 * @date 2025-10-05
 */
public class CmCaseWarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 外部唯一id */
    @Excel(name = "外部唯一id")
    private String publicId;

    /** 案件id */
    @Excel(name = "案件id")
    private Long caseId;

    /** 诉中预警日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "诉中预警日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date interimWarningDate;

    /** 已判未执行预警日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "已判未执行预警日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date judgedUnexecutedWarningDate;

    /** 执行中预警日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "执行中预警日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date executionWarningDate;

    /** 执行结案拍卖预警日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "执行结案拍卖预警日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auctionClosingWarningDate;

    /** 执行结案不拍卖预警日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "执行结案不拍卖预警日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nonAuctionClosingWarningDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPublicId(String publicId)
    {
        this.publicId = publicId;
    }

    public String getPublicId()
    {
        return publicId;
    }

    public void setCaseId(Long caseId)
    {
        this.caseId = caseId;
    }

    public Long getCaseId()
    {
        return caseId;
    }

    public void setInterimWarningDate(Date interimWarningDate)
    {
        this.interimWarningDate = interimWarningDate;
    }

    public Date getInterimWarningDate()
    {
        return interimWarningDate;
    }

    public void setJudgedUnexecutedWarningDate(Date judgedUnexecutedWarningDate)
    {
        this.judgedUnexecutedWarningDate = judgedUnexecutedWarningDate;
    }

    public Date getJudgedUnexecutedWarningDate()
    {
        return judgedUnexecutedWarningDate;
    }

    public void setExecutionWarningDate(Date executionWarningDate)
    {
        this.executionWarningDate = executionWarningDate;
    }

    public Date getExecutionWarningDate()
    {
        return executionWarningDate;
    }

    public void setAuctionClosingWarningDate(Date auctionClosingWarningDate)
    {
        this.auctionClosingWarningDate = auctionClosingWarningDate;
    }

    public Date getAuctionClosingWarningDate()
    {
        return auctionClosingWarningDate;
    }

    public void setNonAuctionClosingWarningDate(Date nonAuctionClosingWarningDate)
    {
        this.nonAuctionClosingWarningDate = nonAuctionClosingWarningDate;
    }

    public Date getNonAuctionClosingWarningDate()
    {
        return nonAuctionClosingWarningDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("caseId", getCaseId())
            .append("interimWarningDate", getInterimWarningDate())
            .append("judgedUnexecutedWarningDate", getJudgedUnexecutedWarningDate())
            .append("executionWarningDate", getExecutionWarningDate())
            .append("auctionClosingWarningDate", getAuctionClosingWarningDate())
            .append("nonAuctionClosingWarningDate", getNonAuctionClosingWarningDate())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
